{% extends "sproutforms/_layout" %} {% block content %}

Output your form using Custom HTML.

Take a look at the code of this template to see an example with comments.


{# Prepare our error macro #} {% macro errorList(errors) %} {# To display errors, you want to make sure errors exist, and then you can loop through and display them #} {% if errors %} {% endif %} {% endmacro %} {% from _self import errorList %}
{{ getCsrfInput() }}
{% if basic is defined %}
{{ errorList(basic.getErrors('plainText')) }}
{% endif %}
{# @TODO - add examples for retaining values below #}
{% if basic is defined %}
{{ errorList(basic.getErrors('dropdown')) }}
{% endif %}
{% endblock %}